package day10;

public class PC implements Cpu,EMS,HardDisk{
    private String brand;
    private Cpu a;
    private EMS b;
    private HardDisk c;
    public PC(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public void show(){
        System.out.println("这台电脑品牌是"+brand+"信息如下");
        System.out.println("Cpu品牌"+a.brand+"主频"+a.freq+"GHZ");
        System.out.println("内存接口类型"+b.port+"容量"+b.cap+"G");
        System.out.println("硬盘容量"+c.cap+"G");
    }
}
